.vocabulary-search {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;

  .search-container {
    display: flex;
    justify-content: center;
    margin: 0 0 10px 0;

    .search-input {
      max-width: 500px;

      :deep(.el-input-group__append) {
        padding: 0;
        border: none;
      }

      .search-button {
        padding: 12px 20px;
        border-radius: 8px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
        border: none;
        background-color: #409eff;
        color: white;
        font-weight: 500;
        height: 100%;
        margin-left: 0px;

        &:hover {
          transform: translateY(-2px);
          box-shadow: 0 4px 12px rgba(64, 158, 255, 0.3);
          background-color: #337ecc;
        }
      }
    }
  }

  .recent-searches {
    margin-bottom: 5px;

    h3 {
      font-size: 1.2rem;
      margin-top: 0;
      margin-bottom: 5px;
    }
  }

  .detail-card {
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;

    &:hover {
      box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    }

    h3 {
      font-size: 1.4rem;
      color: #212529;
      margin-top: 10px;
      margin-bottom: 20px;
      font-weight: 600;
      padding-bottom: 10px;
      border-bottom: 1px solid #eee;
    }
  }

  .searched-word-detail {
    margin: 10px 0;
  }

  .result-section {
    margin-bottom: 30px;
  }

  .recent-container {
    width: fit-content;
    margin: 0 auto;
  }

  .tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;

    .word-tag {
      cursor: pointer;
      font-size: 1rem;
      padding: 10px 15px;
      border-radius: 8px;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
      transition: all 0.3s ease;
      border: none;

      &:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
      }
    }
  }

  // Responsive design
  @media (max-width: 768px) {
    padding: 15px;

    .search-container {
      margin: 20px 0;

      .search-input {
        max-width: 100%;
      }
    }

    .detail-card {
      padding: 20px;
      margin-bottom: 15px;

      h3 {
        font-size: 1.2rem;
        margin-bottom: 15px;
      }
    }

    .tags-container {
      gap: 10px;

      .word-tag {
        padding: 8px 12px;
        font-size: 0.9rem;
      }
    }
  }
}